﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PackageInfo.ascx.cs" Inherits="PayrollHR.Administration.Modules.PackageInfo" %>
<%@ Register Src="SimpleTextBox.ascx" TagName="SimpleTextBox" TagPrefix="uc6" %>
<%@ Register Src="EmailTextBox.ascx" TagName="EmailTextBox" TagPrefix="uc5" %>
<%@ Register Src="DecimalTextBox.ascx" TagName="DecimalTextBox" TagPrefix="uc3" %>
<%@ Register Src="DatePicker.ascx" TagName="DatePicker" TagPrefix="uc2" %>
<%@ Register Src="ToolTipLabelControl.ascx" TagName="ToolTipLabelControl" TagPrefix="uc1" %>

<%@ Register Src="EmailTextBoxNoRequired.ascx" TagName="EmailTextBoxNoRequired" TagPrefix="uc4" %>
<script>
    function demkytu(id, count, max) {
        var field = document.getElementById(id);
        var span = document.getElementById(count);
        if (field.value.length > max)
            field.value = field.value.substring(0, max);
        else
            thaydoikytuspan(max - field.value.length, span);
        //  count.value = max - field.value.length;
    }
    function thaydoikytuspan(value, field) {
        var text = document.createTextNode(value);
        field.firstChild.nodeValue = value;

    }
</script>
<table class="adminContent">

    <tr>
        <td class="adminTitle">
            <uc1:ToolTipLabelControl runat="server" ID="lblCustName" Text="<% $PayrollResources:Admin.PackageInfo.PackName.Text %>"
                ToolTip="<% $PayrollResources:Admin.PackageInfo.PackName.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="adminData">
            <uc6:SimpleTextBox ID="txtPackName" CssClass="adminInput" runat="server"   />
        </td>
        <td class="adminTitle">
            <uc1:ToolTipLabelControl ID="lblCustType" runat="server" Text="<% $PayrollResources:Admin.PackageInfo.type.Text %>"
                ToolTip="<% $PayrollResources:Admin.PackageInfo.type.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="adminData">
            <asp:DropDownList ID="ddlPackeDate" CssClass="adminInput" runat="server" AutoPostBack="True">
            </asp:DropDownList>
        </td>
        
    </tr>
    <tr>
        <td class="adminTitle">
            <uc1:ToolTipLabelControl ID="lblCustDateOfBirth" runat="server" Text="<% $PayrollResources:Admin.Package.packCode.Text %>"
                ToolTip="<% $PayrollResources:Admin.Package.packCode.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="adminData">
           
            <asp:TextBox ID="txtpackcode" runat="server" CssClass="adminInput" onkeypress="demkytu('cph1_PackageAdd1_CustomerTabs_pnlCustomerInfo_ctrlPackeInfo_txtpackcode', 'Span1', '128');" onKeyUp="demkytu('cph1_PackageAdd1_CustomerTabs_pnlCustomerInfo_ctrlPackeInfo_txtpackcode', 'Span1','128');"  ></asp:TextBox>
            <span class="label label-important" id="Span1">128</span>
        </td>
      <td class="adminTitle">
            <uc1:ToolTipLabelControl ID="lblCustEmail" runat="server" Text="<% $PayrollResources:Admin.PackeInfo.packType.Text %>"
                ToolTip="<% $PayrollResources:Admin.PackeInfo.packType.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="adminData">
            <asp:DropDownList ID="ddlPackeType" CssClass="adminInput" runat="server" AutoPostBack="True" >
            </asp:DropDownList>
        </td>

       
    </tr>
    <tr>

        <td class="adminTitle">
             <uc1:ToolTipLabelControl ID="ToolTipLabelControl1" runat="server" Text="Thông Tin Gói "
                ToolTip="<% $PayrollResources:Admin.PackeInfo.packTypeDescript.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td colspan="3" class="adminData">
            
            <asp:TextBox ID="txtDescript1" runat="server" CssClass="adminInput" TextMode="MultiLine" Rows="10" Height="71px" Width="900px"  ></asp:TextBox>
        </td>
           

    </tr>
       <tr>

        <td class="adminTitle">
             <uc1:ToolTipLabelControl ID="ToolTipLabelControl2" runat="server" Text="Giá"
                ToolTip="<% $PayrollResources:Admin.PackeInfo.packTypeDescript2.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td colspan="3" class="adminData">
            
            <asp:TextBox ID="txtDescript2" runat="server" CssClass="adminInput" TextMode="MultiLine" Rows="10" Height="71px" Width="900px"  ></asp:TextBox>
        </td>
           

    </tr>
     <tr>

        <td class="adminTitle">
             <uc1:ToolTipLabelControl ID="ToolTipLabelControl3" runat="server" Text="<% $PayrollResources:Admin.PackeInfo.packType.TextDescript3 %>"
                ToolTip="<% $PayrollResources:Admin.PackeInfo.packTypeDescript3.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td colspan="3" class="adminData">
            
            <asp:TextBox ID="txtDescript3" runat="server" CssClass="adminInput" TextMode="MultiLine" Rows="10" Height="71px" Width="900px"  ></asp:TextBox>
        </td>
           

    </tr>
   
</table>



